<!DOCTYPE html>
<html>
<head>
    <title>查看病害数据</title>
    {% include 'admin/common/header.html' %}
</head>
<body>
<form class="layui-form" lay-filter="pest-edit">
    <div class="mainBox">
        <div class="main-container">
            <div class="main-container">
                <div class="layui-form-item">
                    <label class="layui-form-label">病害名称</label>
                    <div class="layui-input-block">
                        <input type="text" value="{{ wiki_info.disease_name }}" name="disease_name" lay-verify="title" autocomplete="off" placeholder="请输入病害名称"
                               class="layui-input" readonly>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">危害</label>
                    <div class="layui-input-block">
                        <input type="text" value="{{ wiki_info.disease_harm  }}" name="disease_harm" lay-verify="title" autocomplete="off" placeholder="请输入危害"
                               class="layui-input" readonly>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">症状</label>
                    <div class="layui-input-block">
                        <textarea readonly id="symptom" style="height: 180px" name="disease_symptom" required lay-verify="required" autocomplete="off" placeholder="请输入症状" class="layui-textarea">{{ wiki_info.disease_symptom }}</textarea>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">防治方法</label>
                    <div class="layui-input-block">
                        <textarea readonly id="prevention" style="height: 180px" name="disease_prevention" required lay-verify="required" placeholder="请输入防治方法" class="layui-textarea">{{ wiki_info.disease_prevention }}</textarea>
                    </div>
                </div>

                <!-- 参考上传文件页面 -->
                <div class="layui-form-item">
                    <label class="layui-form-label">病害图片</label>
                    <div class="layui-upload-list">
                      <img class="layui-upload-img" src="{{ wiki_info.disease_img }}" id="pestimg" style="width: 92px;height: 92px;margin-left: 110px">
                     </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">说明</label>
                    <div class="layui-input-block">
                        <input type="text" value="{{ wiki_info.disease_explain }}" name="disease_explain" lay-verify="title" autocomplete="off" placeholder="请输入说明"
                               class="layui-input" readonly>
                    </div>
                </div>

            </div>
        </div>
    </div>

</form>
{% include 'admin/common/footer.html' %}
<script>
  layui.use(['form', 'jquery', 'element', 'upload'], function () {
      let form = layui.form
      let $ = layui.jquery
      var element = layui.element;
      var upload = layui.upload;
      var pestFile = "{{ wiki_info.disease_img }}"



  })
</script>

</body>
</html>